<?php

class user_permission_group extends a_dynamic_prop {

    public function get_property_name(){
        return $this->_prefix()."permission_group";
    }

    public function run( i_base_model $caller){         
        if($caller->id!==NULL){           
            return service_l_acl::get_user_group($caller->id);
        }else{
            return NULL;
        }
    }

    public function for_model(){
        return "user_m_user";
    }

    public function run_once(){
        return FALSE;
    }
}
?>